package com.zy.algorithm.v3.sort

import com.zy.view.DIYSortView
import com.zy.utils.data.Point

open class BubbleSortFragment : BaseV3SortFragment() {


    override fun setSortData(diyV4: DIYSortView) {
        val array = intArrayOf(
            8, 10, 5, 3, 9, 2, 6, 4, 7, 1
        )
        diyV4.setD(200)
        diyV4.create(1, 2, array, Point.Type.DEFAULT)
        diyV4.addPoint(1, 1, "V")
    }
}